<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\library\services\QuickEntranceService;
use Illuminate\Http\Request;

class QuickEntranceController extends Controller
{
    /**
     * Author:Zhongyuan Lu
     * 获取快捷入口列表
     * @param Request $request
     * @return mixed
     */
    public function getQuickEntrance(Request $request)
    {
        $page_type = $request->get('page_type',1);
        $ascription = $request->get('ascription',0);

        $data = QuickEntranceService::getList($page_type,$ascription);
        return $this->res($data);
    }
}
